Repository navigation
feat(editor): review agent data table changes row by row with old → new and Δ% - #1241
Merged
Merged
Conversation
houko
force-pushed
the
feat/editor-review-datatable-1033
branch
from
November 26, 2026 11:58
7fccab8 to
310ec4c
Compare
houko
force-pushed
the
feat/editor-review-datatable-1033
branch
from
November 26, 2026 12:09
310ec4c to
240449d
Compare
…, Δ%, History, and UI guards
houko
force-pushed
the
feat/editor-review-datatable-1033
branch
from
November 26, 2026 12:44
240449d to
cd7415d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements row-by-row agent Data Table review matching
docs/design/editor/ReviewData.dc.htmlanddocs/design/editor/Spec.dc.html.Closes #1033
Key changes
tooling/datatable: addedDocument.RowLineandDocument.CellLineso the right-hand YAML diff pane reports exact 1-based YAML line numbers without altering lossless serialization.packages/game/editor/datatable_review.go):27 of 40 changed,new · 0 records), filter chips (All,Changed,Unchanged,Reverted,Yours) with counts, text filter, and non-destructive column sorting cycling ascending → descending → file order witharia-sort(DataTableReviewAriaSort). Numeric columns with changes show aΔheader and sort by percentage delta.old → newandΔ%formatting (numeric zero renders as—), per-recordRevert/Restore, in-place cell value editing (validated against any registered GoRowTypeor inferredValueKind), and row reordering — both joining the review underYoursand taggedyouin the focused record's+/-YAML diff.DataTableReviewCheck: label, value, before, basis) that automatically become marked Out of date whenever the person reverts, restores, edits, or reorders a record, until refreshed.Escpauses the review (PauseDataTableReview), keeps autosave paused (HasOpenReview), shows a"Review paused"toast with Resume, and surfaces a"Review waiting"card inAgentPanelView(without duplicatingRightRailView,AgentPanelView, orAgentTurn).base.Clone()and patches only kept and edited cells viaSetCell, leaving untouched and reverted lines byte-for-byte identical, and commits all files in one atomic Undo step (Undorestores every file byte for byte and removes newly created files). Revert all leaves disk untouched and is undoable with⌘Z.packages/game/editor/datatable_review_ui.go): uses exclusivelySpecPalettetokens (Dark and Light), dashedChangedborders on agent-edited cells, solidAccentborders on person-edited cells, drag-to-reorder viadragdrop, empty new-file state ("No records — ask the agent to add some"), and WCAG AA contrast on Keep and Restore controls.packages/game/editor/editormcp/datatable_review.go): addeddatatable_review_propose,datatable_review_checks, anddatatable_review_status.packages/game/editor/locales/{en,zh}.yaml,docs/{en,zh}/editor.md,docs/{en,zh}/mcp.md,changelog.d/editor-review-datatable.md, and.agents/notes/implemented/feature/2026-11-26-editor-datatable-review.md.Verification
cd packages/game && env -u GOROOT go tool nsgo check(host and-target ios) on./tooling/datatable,./editor,./editor/editormcp,./editor/editorcmd— all passed.cd packages/game && env -u GOROOT go tool nsgo test ./tooling/datatable— 29 passed.cd packages/game && TMPDIR=/tmp env -u GOROOT go tool nsgo test ./editor -run "TestDataTable|TestLocaleCatalogsComplete|TestSpecTheme|TestAutoSave|TestAgent"— all passed (including 27-of-40 shop review, price Δ sort, revert 2, edit 1, lossless Keep diff, single-step byte-for-byte Undo, out-of-date agent checks, and Esc pause/resume).cd packages/game && TMPDIR=/tmp env -u GOROOT go tool nsgo test ./editor/editormcp— 47 passed.cd packages/game && TMPDIR=/tmp env -u GOROOT go tool nsgo test -target macos -screenshots tmp-dt-shots -run TestDataTableReviewMacOSScreenshots ./editor/editorcmd— passed; visually inspected all 4 captured macOS PNGs (Dark open, Dark sorted + stale checks, Light parity, Dark empty new file) and deleted temporary PNGs before commit.env -u GOROOT go run ./tools/changelog checkandbun run verify-notes— passed.